package com.company.exp2.factory;

import com.company.exp2.timeLine.TimeLine;
import com.company.exp2.timeLine.impl.DefaultTimeLine;
import com.company.exp2.typeEnum.TimeLineType;

/**
 * @author dyy
 * TimeLine 的工厂类
 */
public class TimeLineFactory {

    private static final TimeLineType DEFAULT_TYPE = TimeLineType.DEFAULT;

    public static TimeLine createInstance(TimeLineType type) {
        return new DefaultTimeLine();
    }

    public static TimeLine createDefaultInstance() {
        return createInstance(DEFAULT_TYPE);
    }

}
